package com.huoniu.user.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @类 名： User <br/>
 * @描 述： <br/>
 * @日 期： 2020/9/17 9:40<br/>
 * @作 者： 侯建军<br/>
 * @版 本： 1.0.0
 * @since JDK 1.8
 */
@Data
@ApiModel(value = "用户", description = "用户实体")
public class User implements Serializable {

    @ApiModelProperty(value = "用户ID", required = true)
    private Long id;

    @ApiModelProperty(value = "账号", required = true)
    private String username;
    @ApiModelProperty(value = "生日", required = true, example = "格式：2000-08-09 00:00:00")
    private Date birth;
    @ApiModelProperty(value = "密码", required = true)
    private String password;
    /**
     * 枚举
     */
    private TypeEnum typeEnum;
}
